// 操作日志记录
import request from "@/utils/https/requests";

// 列表
export function sysOperLogList(data: any) {
    return request({
        url: "/sysOperLog/list", method: "post", data,
    });
}

// 添加
export function postAddSysOperLog(data: any) {
    return request({
        url: "/sysOperLog/postAdd", method: "post", data,
    });
}

// 修改
export function postModSysOperLog(data: any) {
    return request({
        url: `/sysOperLog/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteSysOperLog(id: string) {
    return request({
        url: `/sysOperLog/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteSysOperLog = (id) => {
    return request({
        url: `/sysOperLog/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function sysOperLogDetail(id: string) {
    return request({
        url: `/sysOperLog/detail/${id}`, method: "post",
    });
}